<%@page import="fr.iut2.tc4.aideprojet2.torque.generated.GroupePeer"%>
<%@page import="java.io.Console"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%-- Directives de page import --%>
<%@ page import="java.util.*"%>
<%@ page import="fr.iut2.tc4.aideprojet2.torque.generated.Etudiant"%>
<%@ page import="fr.iut2.tc4.aideprojet2.torque.generated.EtudiantPeer"%>
<%@ page import="fr.iut2.tc4.aideprojet2.torque.generated.Groupe"%>
<%@ page import="fr.iut2.tc4.aideprojet2.torque.generated.Notes"%>
<%@ page import="fr.iut2.tc4.aideprojet2.torque.generated.GroupePeer"%>
<%@ page import="org.apache.torque.util.Criteria"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="style/style.css" rel="stylesheet" type="text/css">
<title>Test Torque</title>
</head>
<body>
<div class='corps'>
<%@ include file="menu.jsp"%>

<%!
	private int id;
	private String nom;
%>
<%
	if (request.getParameter("id") != "") {		
		Groupe grp = GroupePeer.retrieveByPK(Integer.parseInt(request.getParameter("id")));
		id = grp.getGroupeId();
		nom = grp.getNom();
	}
%>
	<p>Editer un groupe</p>
	<form action="editerGroupeAction.jsp" method="post">
		<input type="text" name="id" hidden="hidden" value="<%=id%>"><br />
		<input type="text" name="nom" value="<%=nom%>"><br />
		<input type="submit" name="submit" value="Modifier"/>
	</form>
	
	<br/>
</div>
</body>
</html>